<?php

	// +----------------------------------------------------------------------
	// | 用户授权
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\model\ucenter;

	class UserAuthentication extends Common
	{
		protected $type = [
		];

		public function user()
		{
			return $this->belongsTo(User::class,'user_id');
		}

		/**
		 * 写入修改
		 * @param $data
		 */
		public static function onBeforeInsert($data)
		{
		}


//        public function getCreateTimeAttr($value,$data)
//        {
//            return $value?$value:date('Y-m-d H:i:s',$data['createtime']);
//        }
//        public function getUpdateTimeAttr($value,$data)
//        {
//            return $value?$value:date('Y-m-d H:i:s',$data['updatetime']);
//        }
	}
